import request from '@/utils/request'

// 查询营业报表列表
export function listCwDealPerDay(query) {
  console.log(query)
  return request({
    url: '/affairs/cwDealPerDay/list',
    method: 'get',
    params: query
  })
}

// 查询营业报表详细
export function getCwDealPerDay(id) {
  return request({
    url: '/affairs/cwDealPerDay/' + id,
    method: 'get'
  })
}

// 新增营业报表
export function addCwDealPerDay(data) {
  return request({
    url: '/affairs/cwDealPerDay',
    method: 'post',
    data: data
  })
}

// 修改营业报表
export function updateCwDealPerDay(data) {
  return request({
    url: '/affairs/cwDealPerDay',
    method: 'put',
    data: data
  })
}

// 删除营业报表
export function delCwDealPerDay(id) {
  return request({
    url: '/affairs/cwDealPerDay/' + id,
    method: 'delete'
  })
}
